package com.tarena.baking.pojo.param;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class ContentParam {

    private Long id;

    private Long createBy;

    @NotEmpty(message = "标题不允许为空")
    private String title;

    @NotEmpty(message = "图片地址不允许为空")
    private String imgUrl;

    private String brief;

    private String videoUrl;

    @NotNull(message = "一级类别不允许为空")
    private Long type;

    @NotNull(message = "二级类别不允许为空")
    private Long categoryId;

    private String content;
}
